home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 291 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. From: ark@research.att.com (Andrew Koenig)
  2. Message-ID: <DMCywE.I63@research.att.com>
  3. X-Original-Date: Tue, 6 Feb 1996 14:29:02 GMT
  4. Path: in1.uu.net!bounce-back
  5. Date: 06 Feb 96 14:42:14 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Return-Path: <daemon@meeker.UCAR.EDU>
  8. Newsgroups: comp.std.c++
  9. Subject: Re: Give operator. a chance
  10. Organization: AT&T Research, Murray Hill NJ
  11. References: <62HLdPo3cDB@faerber.muc.de>
  12. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  13.     iQBFAgUBMRdo1eEDnX0m9pzZAQFiXgF+OOhKq3Re4wFKjUnMa7cYbfErpDQp4Qgo
  14.     MDAsj0wVACebV7LvdIgbVZXfDLyRkZMr
  15.     =cHIF
  16.  
  17. In article <62HLdPo3cDB@faerber.muc.de> claus@faerber.muc.de (Claus A.
  18. Faerber) writes:
  19.  
  20. > IMO there's a better way than 'operator.()':
  21.  
  22. > Simply say: 'If a class member identifier is not found  
  23. > within an object, all possible cast operators are scanned in  
  24. > order to find a conversion to an object of a class  
  25. > containing a member with this identifier.'
  26.  
  27. I suspect that makes compilation impossibly hard in the presence of templates.
  28. -- 
  29.                 --Andrew Koenig
  30.                   ark@research.att.com
  31. ---
  32. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  33.   Contact address: std-c++-request@ncar.ucar.edu.  Moderation policy:
  34.   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html. ]
  35.